package Code.ArrVisit;

import javax.crypto.BadPaddingException;

public class demo1 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6};

        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);
        System.out.println(arr[3]);
        System.out.println(arr[4]);
        System.out.println(arr[5]);

        arr[0] = 100;
        System.out.println(arr[0]);

        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]);
        }
    }
}
